

import request from "@/utils/request.js";

/**
 * 获取分类列表
 * 
 */
export function appointmentList(data) {
	return request.get('doctor/department/list', data, {
		noAuth: true
	});
}
/**
 * 医生详情
 * 
 */
export function getDoctorDetails(id) {
	return request.get('doctor/doctor/detail/' + id, {}, {
		noAuth: true
	});
}

/**
 * 获取医生列表
 * @returns {*}
 */
export function doctorsListapi(data) {
  return request.get("doctor/doctor/list", data, {
		noAuth: true
	});
}

/**
 * 获取预约列表
 * @returns {*}
 */
export function appointmentListapi(data) {
  return request.get("doctor/order/list", data);
}

/**
 * 预约详情
 * 
 */
export function appointmentDetails(id) {
	return request.get('doctor/order/detail' + id, {}, {
		noAuth: true
	});
}
/**
 * 就诊人列表
 * 
 */
export function thePatient(data) {
  return request.get("doctor/patient/list", data);
}
/**
 * 就诊人详情
 * 
 */
export function thePatientDetails(data) {
	return request.get('doctor/patient/detail',data);
}
/**
 * 新增就诊人
 * @param object data
 * 
*/
export function postPatient(data){
  return request.post('doctor/patient/save',data)
}
/**
 * 确认预约
 * @param object data
 * 
*/
export function postConfirm(data){
  return request.post('doctor/order/create',data)
}
/**
 * 提交预约
 * @param object data
 * 
*/
export function postSubmit(data){
  return request.post('doctor/order/submit',data)
}
/**
 * 商户列表
 * @returns {*}
 */
export function storeMerchantList(data) {
	return request.get("store/merchant/lst", data, {
		noAuth: true
	});
}
/**
 * 预约列表
 * @returns {*}
 */
export function subscribeList(data) {
	return request.get("doctor/order/list", data, {

	});
}
/**
 * 取消预约
 * @returns {*}
 */
export function cancelReservation(data) {
	return request.post("doctor/order/cancel", data, {
	});
}

/**
 * 就诊人删除
 * @returns {*}
 */
export function postDelete(data) {
	return request.post("doctor/patient/delete", data, {
	});
}


